-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add docs and some inplace fixes #21
Conversation
Signed-off-by: tison <[email protected]>
pub use stdio::*; | ||
pub use opentelemetry::OpentelemetryLog; | ||
#[cfg(feature = "rolling_file")] | ||
pub use rolling_file::RollingFile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lift the appender to the same level for docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we can't hide rolling_file::RollingFile
anyway?
pub fn append(mut self, append: impl Append) -> Dispatch<true, true> { | ||
self.appends.push(Box::new(append)); | ||
|
||
Dispatch { | ||
filters: self.filters, | ||
appends: vec![Box::new(append)], | ||
appends: self.appends, | ||
layout: self.layout, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix a bug that previously append
override the preconfigured appends.
#[derive(Debug)] | ||
pub struct Logger { | ||
pub struct Logger<const APPEND: bool = true> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hide apply
until at least one append are configured.
No description provided.